//
//  CustomLabel.m
//  老司机发车了
//
//  Created by 程成 on 16/8/6.
//  Copyright © 2016年 斌. All rights reserved.
//

#import "CustomLabel.h"

@implementation CustomLabel

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame: frame]) {
        self.font = [UIFont systemFontOfSize:17];
        self.textAlignment = NSTextAlignmentCenter;
        self.userInteractionEnabled = YES;
    }
    return self;
}

- (void)setScale:(CGFloat)scale{
    self.textColor = [UIColor colorWithRed:scale green:0 blue:0 alpha:1.f];
    CGFloat transformScale = 1+ scale*0.3;
    self.transform = CGAffineTransformMakeScale(transformScale, transformScale);
    
}

@end
